import request from "@/utils/request";
import pathname from "./pathname";

/**
 * 填写评议
 * @param {*} data
 * @returns
 */
export function appraisal(data) {
  return request({
    url: pathname.appraisal,
    method: "post",
    data,
    _hasLoading: true
  });
}

/**
 * 已评议人员列表
 * @param {*} data
 * @returns
 */
export function appraisedPeopleList(data) {
  return request({
    url: pathname.appraisedPeopleList,
    method: "post",
    data
  });
}

/**
 * 查询评议类型
 * @param {*} params
 * @returns
 */
export function getAppraisalType(params) {
  return request({
    url: pathname.getAppraisalType,
    method: "get",
    params
  });
}

/**
 * 列表
 * @param {*} params
 * @returns
 */
export function appraisalGroupList(params) {
  return request({
    url: pathname.appraisalGroupList,
    method: "get",
    params,
    _hasLoading: true
  });
}

/**
 * 列表
 * @param {*} data
 * @returns
 */
export function getAppraisalPeriodList(data) {
  return request({
    url: pathname.getAppraisalPeriodList,
    method: "post",
    data,
    _hasLoading: true
  });
}

/**
 * 未评议人员列表
 * @param {*} data
 * @returns
 */
export function unAppraisalPeopleList(data) {
  return request({
    url: pathname.unAppraisalPeopleList,
    method: "post",
    data,
    _hasLoading: true
  });
}
